package com.ruoyi.classai.domain;

    import java.util.Date;
    import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

    import javax.validation.constraints.NotBlank;
    import java.io.Serializable;

/**
 * 课程信息对象 ewc_course
 *
 * @author lcj
 * @date 2025-02-27
 */
@Data
@TableName("ewc_course")
@Schema(description="课程信息对象ewc_course")
public class EwcCourse implements Serializable{

   private static final long serialVersionUID = 1L;


    /** 课程唯一标识 */
    @Schema(description  = "课程唯一标识")
    private String id;

    /** 课程代码 */
    @Excel(name = "课程代码")
    @Schema(description  = "课程代码")
    private String courseCode;

    /** 课程名称 */
    @NotBlank(message = "课程名称不能为空")
    @Excel(name = "课程名称")
    @Schema(description  = "课程名称")
    private String courseName;

    /** 课程简介 */
    @NotBlank(message = "课程简介不能为空")
    @Excel(name = "课程简介")
    @Schema(description  = "课程简介")
    private String courseDescription;

    /** 学分 */
    @Excel(name = "学分")
    @Schema(description  = "学分")
    private Long credit;

    /** 课程封面图片路径 */
    @Excel(name = "课程封面图片路径")
    @Schema(description  = "课程封面图片路径")
    private String coverPath;

    /** 创建时间 */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Schema(description  = "创建时间")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Schema(description  = "更新时间")
    private Date updateTime;

    /** 状态0删除1正常 */
    @Excel(name = "状态0删除1正常")
    @Schema(description  = "状态0删除1正常")
    private Integer status;

    /** 学科类型 */
    @Excel(name = "学科类型")
    @Schema(description  = "学科类型")
    private Integer subjectType;


}
